﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

// HR
namespace ChainofResponsibilityPattern1
{
    class HRManageApprove : AbstractApprover
    {
        public override void handle(personRequest personRequest)
        {
            if(personRequest.days >= 3 )
            {
                Console.WriteLine("HR同意了你的请假申请");
            }

            AbstractApprover next = Next();
            if(next == null)
            {
                return;
            }
            next.handle(personRequest);
        }
    }
}
